package com.wang.reponse;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

/**
 * 评价回复VO
 */
@Data
@Api(tags = "评价回复VO")
public class EvaluationReplyVo {
    /**
     * 主键id
     */
    private Long id;

    /**
     * 关联的评价id
     */
    @ApiModelProperty(value = "关联的评价id")
    private Long evaluationId;

    /**
     * 回复用户信息
     */
    @ApiModelProperty(value = "回复用户信息")
    private UserVo user;

    /**
     * 回复内容
     */
    @ApiModelProperty(value = "回复内容")
    private String content;

    /**
     * 父回复id
     */
    @ApiModelProperty(value = "父回复id")
    private Long parentReplyId;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    /**
     * 子回复列表
     */
    @ApiModelProperty(value = "子回复列表")
    private List<EvaluationReplyVo> children;
} 